/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package de.hbrs.ooka.enums;

/**
 *
 * @author student
 */
public enum Role {
    PARTICIPANT("Teilnehmer", 2 << 0),
    ORGANIZER("Organisator", 2 << 1), 
    REVIEWER("Gutachter", 2 << 2);
    
    private final String description;
    private final int database_code;
    
    Role(String desc, int dbcode) {
        this.description = desc;
        this.database_code = dbcode;
    }
    
    public String getDescription() {
        return this.description;
    }
    
    public int getDBCode() {
        return this.database_code;
    }
    
    @Override
    public String toString() {
        return this.getDescription();
    }
}
